﻿<?php echo  $this->render("header") ?>
<?php $this->column_num=5;; ?>
<form name="frmSubmit" method="post" action="">
	
  <table width="100%"  border="0" cellspacing="1" cellpadding="8">
    <tr class="tableHeader"> 
      <td colspan="4">
           <B>&nbsp;修改密码</B> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
           <font color = "#1B06CC" ><?php echo  $this->str_change ?></font>
      </td>
    </tr>
    <tr class="bg_0"> 
      <td align="right" width="10%">用户名：&nbsp;</td>
      <td width="15%">
      		<?php echo  $this->user['name'] ?>
      </td>
    </tr>
   
    <tr class="bg_0"> 
      <td align="right" width="10%">旧密码：&nbsp;</td>
      <td width="15%">
      	     <input type="password" name = "pw" >
      </td>
    </tr>
   
    <tr class="bg_0"> 
      <td align="right" width="10%">新密码：&nbsp;</td>
      <td width="15%">
      	     <input type="password" name = "pw1" >
      </td>
    </tr>
    <tr class="bg_0"> 
      <td align="right" width="10%">确认：&nbsp;</td>
      <td width="15%">
      	     <input type="password" name = "pw2" >
	     <input type="hidden" name = "t" value = "1">
      </td>
    </tr>
    
    <tr align="center" class="tableHeader"> 
      <td colspan="4"> <input type="submit" name="submit" value="修改"> </td>
    </tr>
  </table>
</form>
&nbsp;
<?php if($this->user['id'] = 1 ){?>
<form name="frmSubmit" method="post" action="">
	
  <table width="100%"  border="0" cellspacing="1" cellpadding="8">
    <tr class="tableHeader"> 
      <td colspan="4">
           <B>&nbsp;新建账号</B> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
           <font color = "#1B06CC" ><?php echo  $this->str_new ?></font>
      </td>
    </tr>
    <tr class="bg_0"> 
      <td align="right" width="10%">用户名：&nbsp;</td>
      <td width="15%">
      		<input type="text" name ="name">
      </td>
    </tr>
   
    <tr class="bg_0"> 
      <td align="right" width="10%">密码：&nbsp;</td>
      <td width="15%">
      	     <input type="password" name = "pw1" >
      </td>
    </tr>
   
    <tr class="bg_0"> 
      <td align="right" width="10%">确认：&nbsp;</td>
      <td width="15%">
      	     <input type="password" name = "pw2" >
      </td>
    </tr>
    <tr class="bg_0"> 
      <td align="right" width="10%">邮箱：&nbsp;</td>
      <td width="15%">
      	     <input type="text" name = "email" >
	     <input type="hidden" name = "t" value = "2">
      </td>
    </tr>
    
    <tr align="center" class="tableHeader"> 
      <td colspan="4"> <input type="submit" name="submit" value="新建"> </td>
    </tr>
  </table>
</form>
<?php }?>
<?php if(empty( $this->users_list ) ){?>

&nbsp;
<table width="100%"  border="0" cellspacing="1" cellpadding="3" class="tableOutborder">
	<tr class="tableHeader"><td colspan="<?php echo  $this->column_num ?>"><B>&nbsp;账号列表</B></td></tr>
	<tr class="tableHeader">
		<td width="4%" align="center">序号</td>
		<td width="10%" align="center">用户名</td>
		<td width="27%" align="center">权限级别</td>
	</tr>
	<?php if(is_array($this->users_list)){foreach($this->users_list as $this->key=>$this->one) { ?>
	<tr class="bg_<?php echo  ($this->key + 1)%2 ?>">
		<td align="center"><?php echo  $this->key + 1 ?></td>
		<td align="center">&nbsp;<?php echo  $this->one['name'] ?></td>
		<td align="center">普通权限</td>
	</tr>
	<?php }}?>

</table>
<?php }?>
&nbsp;

<?php echo  $this->render("footer") ?>
